import { onKeyStroke } from "@vueuse/core";
import { deleteComponent } from "./actions";
import { currentComponent } from "./data";

onKeyStroke("Delete", (e) => {
  if (currentComponent.value) {
    e.preventDefault();
    deleteComponent();
  }
});
